package com.zto.sch.cycle;

import com.zto.sch.anno.MyAspectAnno;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-11-18 20:24
 **/
@Service
public class A {
    @Autowired
    private B b;

    public A() {
        System.out.println("A实例化");
    }

//    @PostConstruct
//    public void postConstruct() {
//        System.out.println("A   @PostConstruct...");
//    }

    @MyAspectAnno
    public void test() {
        System.out.println("A test method...");
    }
}
